package com.hispot.download;

/**
 * Created by ASUS-PC on 2016/11/13.
 */

public interface FileDownloadListener {

    void onStart(String url);

    void onWaiting(String url, long soFar, long total, int percent);

    void onPause(String url, long soFar, long total, int percent);

    void onDownloading(String url, long soFar, long total, int percent);

    void onComplete(String url,String filePath);

    void onError(String url, int code, int downloadError, String errorMessage);
}
